package vue.spring.cloud.web.admin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import vue.spring.cloud.web.admin.service.AdminService;

/**
 * @ClassName AdminController
 * @Deccription TODO
 * @Author DZ
 * @Date 2020/6/6 21:07
 **/
@RestController
public class AdminController {

    @Autowired
    private AdminService adminService;

    @RequestMapping(value = "hi", method = RequestMethod.GET)
    public String sayHi(String message) {
        return adminService.sayHi(message);
    }


}
